<div class="ucp_content">
<div class="ucp_top">Cập nhật thông tin cá nhân</div>
	<div class="my_items">
    	{$msg}
        {$begin_form}
		<input type="hidden" name="user_id" value="{$user.id}" />
            <form action="javascript();" id="edit_user">
		<table cellspacing="0" cellpadding="2" class="ucp_table" bordercolor="#CCCCCC" border="1">
		<tr>
			<td valign="top" class="ucp_field">ID tài khoản</td>
			<td valign="top">
				<b>{$user.id}</b>
            </td>
		</tr>
        <tr>
			<td valign="top" class="ucp_field">Email đăng nhập</td>
			<td valign="top">
				<a href="member-{$user.id}.html" target="_blank">{$user.email}</a>
            </td>
		</tr>
{*        <tr>
            <td valign="top" class="ucp_field">Nhóm</td>
            <td valign="top">
            {foreach from=$groups item=each_group}
                <label for="gids"><input type="checkbox" value="{$each_group.id}" name="gids[]" {foreach from=$gids item=gid}{if $gid==$each_group.id} checked="checked" {/if}{/foreach}>{$each_group.brief}</label><br>
            {/foreach}
            </td>
        </tr>*}
        <tr>
			<td valign="top" class="ucp_field">Họ và tên</td>
			<td valign="top"><input name="full_name" class="text" size="30" type="text" id="full_name" value="{$user.full_name}"/></td>
		</tr>

		<tr>
			<td valign="top" class="ucp_field">Số điện thoại hiển thị</td>
			<td valign="top">
				<input type="text" class="text" size="30" name="mobile_phone" id="mobile_phone" value="{$user.mobile_phone}" class="inputtext" />
			</td>
		</tr>
        <tr>
            <td valign="top" class="ucp_field">Avatar</td>
            <td valign="top">
            {if ($user.avatar_url !== '')}<img width="150px" src="{$server_img}/{$user.avatar_url}" alt="[Avatar Image]"><br>{/if}
                <input type="file" name="avatar" id="avatar" />
            </td>
        </tr>
        <tr>
            <td valign="top" class="ucp_field">Địa chỉ</td>
            <td valign="top">
                <input type="text" class="text" size="30" name="address" value="{$user.address}" class="inputtext" />
            </td>
        </tr>
        <tr>
            <td valign="top" class="ucp_field">Website</td>
            <td valign="top">
                <input type="text" class="text" size="30" name="website" value="{$user.website}" class="inputtext" />
            </td>
        </tr>
        <tr>
            <td valign="top" class="ucp_field">Ngày sinh</td>
            <td valign="top">
                <input type="text" class="text" size="30" name="birth_day" {if $user.birth_day != '0000-00-00'} value="{$user.birth_day}" {/if} placeholder="năm/tháng/ngày" class="inputtext" />
            </td>
        </tr>
        <tr>
            <td valign="top" class="ucp_field">Giới tính</td>
            <td valign="top">
                <label><input type="radio" value="1" name="gender" id="gender" {if ($user.gender == 1)} checked='checked' {/if}>Nam</label>
                <label><input type="radio" value="0" name="gender" id="gender"  {if ($user.gender == 0)} checked='checked' {/if}>Nữ</label>
            </td>
        </tr>
        <tr>
            <td valign="top" class="ucp_field">Yahoo ID</td>
            <td valign="top">
                <input type="text" class="text" size="30" name="yahoo_id" value="{$user.yahoo_id}" class="inputtext" />
            </td>
        </tr>
        <tr>
            <td valign="top" class="ucp_field">Skype</td>
            <td valign="top">
                <input type="text" class="text" size="30" name="skype_id" value="{$user.skype_id}" class="inputtext" />
            </td>
        </tr>
		<tr>
			<td valign="top"></td>
			<td valign="top">
                <input type="checkbox" name="email_subcribe" id="email_subcribe" value="1" {if $user.email_subcribe} checked="checked" {/if} />
                <label for="email_subcribe" style="cursor:pointer">Nhận các bản tin qua E-mail</label>
            </td>
		</tr>
		<tr>
			<td></td>
			<td><input type="submit" id="edit_user_bt" value="Lưu lại" class="button" style="width:80px"/></td>
		</tr>
		</table>
            </form>
        {$end_form}
	</div>
</div>



{literal}  
<script type="text/javascript">
jQuery().ready(function()
						{			
	jQuery().ajaxComplete(function(r,s){
                jQuery("#loading-layer").fadeOut("slow");
        });
});
{/literal}

{literal}
	var tooltipObj = new DHTMLgoodies_formTooltip();
	tooltipObj.setTooltipPosition('right');
	tooltipObj.setPageBgColor('#EEEEEE');
	tooltipObj.setTooltipCornerSize(10);
	tooltipObj.initFormFieldTooltip();
</script>
{/literal}